From: Fabián Ezequiel Gallina Date: Thu, 17 May 2012 03:03:45 +0000 (-0300) Subject: Make `which-func-functions' defaults to '(python-info-current-defun) X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~2326^2~2138 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=c6d3df36da36ee383a6dcde5cce76175258ba269;p=emacs.git Make `which-func-functions' defaults to '(python-info-current-defun) --- diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 1ede66058e8..4b9a29845c5 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -2838,6 +2838,8 @@ if that value is non-nil." (set (make-local-variable 'add-log-current-defun-function) #'python-info-current-defun) + (add-hook 'which-func-functions #'python-info-current-defun nil t) + (set (make-local-variable 'skeleton-further-elements) '((abbrev-mode nil) (< '(backward-delete-char-untabify (min python-indent-offset